package com.smart.meetingDemo.config;


import com.smart.meetingDemo.service.FeishuService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MCPConfig {

    @Bean
    public ToolCallbackProvider documentTools(FeishuService feishuService) {
        return MethodToolCallbackProvider.builder()
                .toolObjects(feishuService)
                .build();
    }
}
